package com.ruoyi.amuse.announcements.mapper;


import com.ruoyi.amuse.announcements.domain.ClubAnnouncements;

import java.util.List;

/**
 * 发布公告Mapper接口
 * 
 * @author juwujie
 * @date 2024-07-19
 */
public interface ClubAnnouncementsMapper 
{
    /**
     * 查询发布公告
     * 
     * @param announcementId 发布公告主键
     * @return 发布公告
     */
    public ClubAnnouncements selectClubAnnouncementsByAnnouncementId(Long announcementId);

    /**
     * 查询发布公告列表
     * 
     * @param clubAnnouncements 发布公告
     * @return 发布公告集合
     */
    public List<ClubAnnouncements> selectClubAnnouncementsList(ClubAnnouncements clubAnnouncements);

    /**
     * 新增发布公告
     * 
     * @param clubAnnouncements 发布公告
     * @return 结果
     */
    public int insertClubAnnouncements(ClubAnnouncements clubAnnouncements);

    /**
     * 修改发布公告
     * 
     * @param clubAnnouncements 发布公告
     * @return 结果
     */
    public int updateClubAnnouncements(ClubAnnouncements clubAnnouncements);

    /**
     * 删除发布公告
     * 
     * @param announcementId 发布公告主键
     * @return 结果
     */
    public int deleteClubAnnouncementsByAnnouncementId(Long announcementId);

    /**
     * 批量删除发布公告
     * 
     * @param announcementIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteClubAnnouncementsByAnnouncementIds(Long[] announcementIds);
}
